<template>
  <view class="sign-in-desc">
    <text class="title">
      签到获取
    </text>
     <view class="desc">{{desc}}</view>
  </view>
</template>
<script setup>
import {ref} from 'vue'
import {onShow} from "@dcloudio/uni-app";
import {getDescApi} from "@/api/public";
const desc = ref('')

const getDesc = async () => {
  const res = await getDescApi('签到说明')
  const {code, data} = res
  if (code === 200) {
    console.log(data)
    desc.value = data[0].filedName
  }
}
onShow(() => {
  getDesc()
})
</script>
<style lang=less scoped>
.sign-in-desc {
  height: 100vh;
  background-color: @color-origin-white;
  padding: 28rpx 25rpx 0 43rpx;
  font-family: 'ali-p';
  .title {
    display:block;
    font-size: 31rpx;
    font-weight: 600;
    color: @color-black-text;
    padding-bottom: 23rpx;
    border-bottom: 1px solid @color-light-grey-border;
  }
    .desc {
      font-size:27rpx;
      color: @color-grey-text;
      line-height: 35rpx;
    }
}
</style>